An Analysis of a Memory Allocation Scheme - I * for Implementing Stacks Andrew
نویسنده
چکیده
Consider the implementation of two stacks by letting them grow towards each other in a table of size m . Suppose a random sequence of insertions and deletions are executed, with each instruction having a fixed probability p (0 < p < l/2) to be a deletion. Let (m % ) denote the expected value of max{x,yj , where x and y are the stack heights when the table first becomes full. We shall. -prove that, as m4=, Ap(4 = (2x(1-2~)) + O((log m)/&) . This gives a solution to an open problem in Knuth [The Art of Computer Programming Vol. 1, Exercise 2.2.2-131. f* This research was supported in part by National Science Foundation under grant MCS77-05313. Part of this paper was prepared while the author was visiting Bell Laboratories, Murray Hill, N.J.
منابع مشابه
Dynamic Initial Allocation awl
Two new procedures for manipulating multiple stacks which share sequential memory locations are discussed. The first is the dynamic initial allocation procedure in which each stack is allocated as its first element arrives rather than having every stack preallocated at the very beginning of the entire process. The second is the local reallocation procedure; in this scheme, when a stack overflow...
متن کاملPerformance Analysis of Wireless Cooperative Networks with Iterative Incremental Relay Selection
In this paper, an iterative incremental relay selection (IIRS) scheme is considered for wireless cooperative networks in order to increase the reliability of transmission. Different from the conventional incremental relay selection which incrementally selects a best relay for only one iteration; the IIRS scheme iteratively applies the incremental relaying and relay selection processes. To evalu...
متن کاملCold standby redundancy optimization for nonrepairable series-parallel systems: Erlang time to failure distribution
In modeling a cold standby redundancy allocation problem (RAP) with imperfect switching mechanism, deriving a closed form version of a system reliability is too difficult. A convenient lower bound on system reliability is proposed and this approximation is widely used as a part of objective function for a system reliability maximization problem in the literature. Considering this lower bound do...
متن کاملSmall Scheme Stack: A Scheme TCP/IP Stack Targeting Small Embedded Applications
Interaction with embedded systems is usually achieved by hooking up these devices to a computer network. The TCP/IP stack of protocols has often been used to this end, requiring compact stacks to be implemented as regular ones are too large for embedded systems. Traditionally, compact stacks such as uIP [4] have been implemented in C. Here we report on our experience in implementing S (“Small S...
متن کاملCombining data envelopment analysis and multi-objective model for the efficient facility location–allocation decision
This paper proposes an innovative procedure of finding efficient facility location–allocation (FLA) schemes, integrating data envelopment analysis (DEA) and a multi-objective programming (MOP) model methodology. FLA decisions provide a basic foundation for designing efficient supply chain network in many practical applications. The procedure proposed in this paper would be applied to the FLA pr...
متن کامل